home *** CD-ROM | disk | FTP | other *** search
/ Clickx 75 / Clickx 75.iso / software / expressionweb / expressionwebv3 / ExpressionWeb_en.exe / Setup / WeConen.cab / xweb.ACTIONS.CHKPLUGN.HTM.en < prev    next >
Encoding:
Text File  |  2009-06-09  |  4.6 KB  |  172 lines

  1. 
  2. <html>
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5.         
  6.         <title>Check Plug-in</title>
  7.         <meta name="DHTMLScriptName" content="Check &Plug-in">
  8.         
  9.         <meta name="DialogResizable" content="true">
  10.         <meta name="DialogSize" content="500,200">
  11.         
  12.         <style>
  13.         button    { width: 8em;  }                
  14.         table    { border: none; border-collapse: collapse }
  15.         </style>
  16.         <script type="text/JavaScript">
  17.         var L_NOURL_ErrorMessage        = "Please enter a URL";
  18.         var L_NOOPTION_ErrorMessage        = "Please choose an option";
  19.         </script>
  20.         <script type="text/JavaScript" src="FPLib.js"></script>
  21.         <script type="text/JavaScript" src="Strings.js"></script>
  22.         <script type="text/JavaScript" src="ChkPlugn.js"></script>
  23.     </head>
  24.     <body onload="safeFocus(theForm.Plugin)">
  25.         <form id="theForm" name="theForm" onsubmit="Validate(); return false;">
  26.             <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="threedshadow" id="AutoNumber1" width="100%" height="100%">
  27.                 <tr>
  28.                     <td colspan="7" nowrap>
  29.                         <label for="Plugin">
  30.                         
  31.                             If the current <u>p</u>lug-in is: 
  32.                         </label>
  33.                         <select size="1" name="Plugin" accesskey="p" id="Plugin">
  34.                             
  35.                             <option>Flash</option>
  36.                             <option>QuickTime</option>
  37.                             <option>RealPlayer</option>
  38.                             <option>Shockwave</option>
  39.                             <option selected>Windows Media Player</option>
  40.                         </select>
  41.                         <br>
  42.                          
  43.                     </td>
  44.                 </tr>
  45.                 <tr>
  46.                     <td>     </td>
  47.                     <td nowrap>
  48.                         <input type="checkbox" name="GoToURL1" value="ON" id="GoToURL1" accesskey="g">
  49.                         
  50.                     </td>
  51.                     <td nowrap>
  52.                         <label for="GoToURL1">
  53.                             
  54.                             <u>G</u>o to URL:
  55.                         </label>
  56.                     </td>
  57.                     <td width="100%" colspan="2" dir="ltr">
  58.                         <input type="text" name="URL1" id="URL1" style="width: 100%" disabled="true" style="background-color: threedface"></td>
  59.                     <td>
  60.                          </td>
  61.                     <td>
  62.                         <button name="BrowseURL1" value="Browse..." onclick="PickURL(URL1);" disabled="true" accesskey="b">
  63.                         
  64.                           
  65.                             <u>B</u>rowse... 
  66.                         </button>
  67.                     </td>
  68.                 </tr>
  69.                 <tr>
  70.                     <td colspan="7" nowrap>
  71.                         <br>
  72.                         
  73.                         Otherwise, for all other plug-ins:
  74.                         <br>
  75.                          
  76.                     </td>
  77.                 </tr>
  78.                 <tr>
  79.                     <td>
  80.                              
  81.                     </td>
  82.                     <td>
  83.                         <input type="checkbox" name="GoToURL2" value="ON" accesskey="u" id="GoToURL2">
  84.                         
  85.                     </td>
  86.                     <td nowrap>
  87.                         <label for="GoToURL2">
  88.                         
  89.                             Go to <u>U</u>RL: 
  90.                         </label>
  91.                     </td>
  92.                     <td width="100%" dir="ltr">
  93.                         <input type="text" name="URL2" id="URL2" style="width: 100%" disabled="true" style="background-color: threedface"></td>
  94.                     <td>
  95.                          </td>
  96.                     <td colspan="2">
  97.                         <button name="BrowseURL2" value="Browse..." onclick="PickURL(URL2);" disabled="true" accesskey="r">
  98.                             
  99.                             
  100.                             B<u>r</u>owse...
  101.                         </button>
  102.                     </td>
  103.                 </tr>
  104.                 <tr>
  105.                     <td height="80%"></td>
  106.                 </tr>
  107.                 <tr>
  108.                     <td colspan="7">
  109.                         <hr>
  110.                         <table width="100%">
  111.                             <tr>
  112.                                 <td width="100%"> </td>
  113.                                 <td>
  114.                                     <button name="OK" value="OK" type="submit">
  115.                                           
  116.                                         OK
  117.                                     </button>
  118.                                 </td>
  119.                                 <td> </td>
  120.                                 <td>
  121.                                     <button name="Cancel" value="Cancel" onclick="CancelAction();">
  122.                                         
  123.                                         Cancel
  124.                                     </button>
  125.                                 </td>
  126.                             </tr>
  127.                         </table>
  128.                     </td>
  129.                 </tr>
  130.         </form>
  131.         </table>
  132.     </body>
  133.     <script language="javascript" id="EventHandler">
  134.  
  135. theForm.GoToURL1.onclick = e_GoToURLonclick;
  136. theForm.GoToURL2.onclick = e_GoToURLonclick;
  137.  
  138. //Click event for the go to URL check box
  139. function e_GoToURLonclick()
  140. {
  141.     if (event.srcElement.name == "GoToURL1")
  142.     {
  143.         theForm.URL1.disabled = !(theForm.URL1.disabled);
  144.         theForm.BrowseURL1.disabled = theForm.URL1.disabled;
  145.         if (theForm.URL1.disabled == false)
  146.             theForm.URL1.style.backgroundColor = "window";
  147.         else
  148.             theForm.URL1.style.backgroundColor = "threedface";
  149.     }
  150.     if (event.srcElement.name == "GoToURL2")
  151.     {
  152.         theForm.URL2.disabled = !(theForm.URL2.disabled);
  153.         theForm.BrowseURL2.disabled = theForm.URL2.disabled;
  154.         if (theForm.URL2.disabled == false)
  155.             theForm.URL2.style.backgroundColor = "window";
  156.  
  157.         else
  158.             theForm.URL2.style.backgroundColor = "threedface";
  159.  
  160.     }
  161. }
  162.  
  163. function PickURL(eURL)
  164. {
  165.     var url = FrontPage.ShowPickURLDialog(FrontPage.ActiveDocument.url, eURL.value);
  166.     if (url != '') 
  167.         eURL.value = url;
  168.     eURL.focus();
  169. }
  170.     </script>
  171. </html>
  172.